<%--
  Created by IntelliJ IDEA.
  User: winaya
  Date: 2016/9/12
  Time: 15:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="s" uri="http://www.springframework.org/tags" %>
<table cellspacing="0" cellpadding="0" border="1" style="margin-bottom: 4px; width: 99%;"
       class="table">
    <tr>
        <th style="width:10%">
            <span>海关编号</span>
        </th>
        <td style="width:38%;">
            <input name="id" value="${declaration.id}" type="hidden"/>
            <input type="text" id="GJH" name="sno"
                   value="${declaration.sno}" atitle="海关申报-海关编号"/>
            <input type="hidden" id="HGVERSION_NO"
                   name="baHgbaseinfo.version_no" value=""/>
        </td>
        <th style="width:8%">
            <span>报关行</span>
        </th>
        <td style="width: 44%;">
            <span class="textbox combo" style=" height: 20px ;">
                 <span class="textbox-addon textbox-addon-right" style="right: 0px;">
                    <a href="javascript:void(0)" onclick="initSelect($(this));"
                       class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
                </span>
                <input class="textbox-text validatebox-text textbox-prompt" type="text"
                       placeholder=""
                       autocomplete="off"
                       style=" padding-top: 3px; padding-bottom: 3px; margin-right: 18px; margin-left: 0px;color:black;"
                       value="${declaration.supCompany.name}"
                       title="4406980006"
                       onfocus="initByFocus($(this));"/>
            </span>
            <input id="bgh" name="supCompany.name"
                   selectData="hg_gys_bgh" theKey="HGNAMECN" valueId="bghHidden"
                   notClearIfNotExist="1" theValue="ID" value="${declaration.supCompany.name}"
                   data-options="valueField:'id', textField:'text'" style="display: none;"/>

            <input type="hidden" id="bghHidden"
                   name="supCompany.id"
                   class="{required:true}"
                   value="${declaration.supCompany.id}"/>
        </td>
</table>
<table style="width: 99%;" cellspacing="0" cellpadding="0" border="1"
       class="table">
    <tr>
        <th>
            <span>统一编号</span>
        </th>
        <td style="width: 30%;" colspan="3">
            <input type="text" id="TYBH" name="unityNo"
                   readonly="readonly" value="" atitle="海关申报-统一编码"/>
            <%--${declaration.unityNo}--%>
        </td>
        <th>
            <span>申报状态</span>
        </th>
        <td id="hgStateTd" colspan="3" style="width: 30%">
            <input id="hgStateInput" name="declareState" readonly="readonly" type="text"
                   value=""/>
            <%--${declaration.declareState}--%>
        </td>
        <script>
            changeHgStatuName('');
        </script>
    </tr>
    <tr>
        <th>
            <span>海关编号</span>
        </th>
        <td style="width: 30%;" colspan="3">
            <input type="text" id="HGBH" name=""
                   readonly="readonly" value="${declaration.sno}" atitle="海关申报-海关编号"/>
        </td>
        <th>
            <span><span class="mustRemark">*</span>出口口岸</span>
        </th>
        <td style="width: 30%;" colspan="3">
        <span class="textbox combo" style=" height: 20px;">
             <span class="textbox-addon textbox-addon-right" style="right: 0px;">
                <a href="javascript:void(0)" onclick="initSelect($(this),null,false);"
                   class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
            </span>
            <input class="textbox-fix textbox-text validatebox-text textbox-prompt" type="text"
                   autocomplete="off"
                   value="${declaration.export_port}"
                   onfocus="initByFocus($(this));"/>
        </span>
            <input id="HGSB-JKKACKKA" atitle="海关申报-出口口岸（关区代码表）"
                   name="export_port" valueId="jkkackkaHidden"
                   value="${declaration.export_port}"
                   selectData="co_hggqdm" theKey="SHOWNAME" theValue="ID" style="display: none;"/>
            <input type="hidden" id="jkkackkaHidden" name="export_port_code"
                   class="{required:true}"
                   value="${declaration.export_port_code}"/>
        </td>
    </tr>
    <tr>
        <th>
            <span>备案号</span>
        </th>
        <td style="width: 30%;" colspan="2">
            <input type="text" name="record_id" atitle="海关申报-备案号"
                   class="{anLength:[12,12]}" value="${declaration.record_id}"/>
        </td>
        <th style="white-space: nowrap;width:100px;">
            <span>合同协议号</span>
        </th>
        <td style="width: 30%;" colspan="2">
            <input type="text" name="contract_no"
                   class="{maxlength:32}" value="${declaration.contract_no}" atitle="海关申报-合同协议号"/>
        </td>
        <th>
            <span>签约日期</span>
        </th>
        <td style="width: 30%;" colspan="2">
            <input type="text" name="contract_date" value="${declaration.contract_date}"
                   style="border: 0px; height: 22px; background-color: #fff;"
                   class="Wdate"
                   onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                   atitle="海关申报-签约日期"/>
        </td>
    </tr>
    <tr>
        <th>
            <span><span class="mustRemark">*</span>申报地海关</span>
        </th>
        <td style="width: 30%;" colspan="3">
        <span class="textbox combo" style=" height: 20px;">
             <span class="textbox-addon textbox-addon-right" style="right: 0px;">
                <a href="javascript:void(0)" onclick="initSelect($(this),null,false);"
                   class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
            </span>
            <input class="textbox-fix textbox-text validatebox-text textbox-prompt" type="text"
                   autocomplete="off"
                   value="${declaration.declaration_port}"
                   onfocus="initByFocus($(this));"/>
        </span>
            <input id="HGSB-SBKA" atitle="海关申报-申报口岸"
                   name="declaration_port" valueId="sbkaHidden"
                   selectData="co_hggqdm" theKey="SHOWNAME" theValue="ID"
                   value="${declaration.declaration_port}" style="display: none;"/>
            <input type="hidden" id="sbkaHidden" name="declaration_port_code"
                   class="{required:true}"
                   value="${declaration.declaration_port_code}"/>
        </td>
        <th>
            <span>出口日期</span>
        </th>
        <td style="width: 15%;">
            <input type="text" name="export_date" value="${declaration.export_date}"
                   style="border: 0px; height: 22px; background-color: #fff;"
                   class="Wdate"
                   onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                   atitle="海关申报-出口日期"/>
        </td>
        <th>
            <span>申报日期</span>
        </th>
        <td style="width: 15%;">
            <input type="text" id="SBRQ" style="width: 100%" value="${declaration.report_date}"
                   name="report_date" readonly="readonly">
        </td>
    </tr>
    <tr>
        <th style="width: 10%;">
            <span><span class="mustRemark">*</span>收发货人</span>
        </th>
        <td style="width: 15%;">
            <span class="textbox combo" style=" height: 20px;">
                 <span class="textbox-addon textbox-addon-right" style="right: 0px;">
                    <a href="javascript:void(0)" onclick="initSelect($(this));"
                       class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
                </span>
                <input class="textbox-text validatebox-text textbox-prompt" type="text"
                       placeholder=""
                       autocomplete="off"
                       style=" padding-top: 3px; padding-bottom: 3px; margin-right: 18px; margin-left: 0px;color:black;"
                       value="${declaration.company_co}"
                       title=""
                       onfocus="initByFocus($(this));"/>
            </span>
            <input style="display: none;" id="HGSB-JYDWBM"
                   selectData="hg_option" theKey="HGCODE" keyId="jydwHidden"
                   notClearIfNotExist="1" theValue="HGNAMECN" name=""
                   value="${declaration.companyName}"
                   valueId="jydwmc" theCode="CODESCC" codeId="tradeCodeScc"
                   data-options="valueField:'id', textField:'text'"/>
            <input type="hidden" id="jydwHidden" name="company_co"
                   class="{required:true,length10:true}"
                   value="${declaration.company_co}"/>
        </td>
        <td colspan="2">
            <input type="text" id="tradeCodeScc"
                   name="" class="{maxlength_T:18}"
                   value=""/>
        </td>
        <td style="" colspan="2">
            <input type="text" id="jydwmc" name="companyName"
                   class="{required:true,maxlength_T:70}"
                   atitle="海关申报-收发货人名称"
                   value="${declaration.companyName}"/>
        </td>
        <th>
            <span><span class="mustRemark">*</span>运输方式</span>
        </th>
        <td style="" colspan="1">
            <span class="textbox combo" style=" height: 20px;">
                 <span class="textbox-addon textbox-addon-right" style="right: 0px;">
                    <a href="javascript:void(0)" onclick="initSelect($(this),null,false);"
                       class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
                </span>
                <input class="textbox-text validatebox-text textbox-prompt" type="text"
                       placeholder=""
                       autocomplete="off"
                       style=" padding-top: 3px; padding-bottom: 3px; margin-right: 18px; margin-left: 0px;color:black;"
                       value="${declaration.transport_mode}"
                       title="(2)水路运输"
                       onfocus="initByFocus($(this));"/>
            </span>
            <input id="HGSB-YSFS" atitle="海关申报-运输方式"
                   name="" valueId="ysfsHidden"
                   selectData="hg_co_ysgj" theKey="SHOWNAME" theValue="ID"
                   value="" style="display: none;"/>
            <input type="hidden" id="ysfsHidden" name="transport_mode"
                   class="{required:true}"
                   value="${declaration.transport_mode}"/>
        </td>
    </tr>
    <tr>
        <th style="white-space: nowrap;">
            <span>
                <span class="mustRemark">*</span>
                 <c:if test="${table=='entry'}">
                     消费使用单位
                 </c:if>
                <c:if test="${table=='export'}">
                    生产销售单位
                </c:if>
            </span>
        </th>
        <td>
            <span class="textbox combo" style=" height: 20px;">
                 <span class="textbox-addon textbox-addon-right" style="right: 0px;">
                    <a href="javascript:void(0)" onclick="initSelect($(this));"
                       class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
                </span>
                <input class="textbox-text validatebox-text textbox-prompt" type="text"
                       placeholder=""
                       autocomplete="off"
                       style=" padding-top: 3px; padding-bottom: 3px; margin-right: 18px; margin-left: 0px;color:black;"
                       value="${declaration.fahuo_company_co}"
                       title=""
                       onfocus="initByFocus($(this));"/>
            </span>
            <input style="display: none;" id="SHDWBM"
                   selectData="hg_option" theKey="HGCODE"
                   keyId="shdwbmfhdwbmHidden" notClearIfNotExist="1"
                   theValue="HGNAMECN" valueId="shdwmcfhdwmc"
                   theCode="CODESCC" codeId="ownerCodeScc"
                   data-options="valueField:'id', textField:'text'"/>
            <input type="hidden" id="shdwbmfhdwbmHidden"
                   name="fahuo_company_co"
                   class="{required:true,length10:true}"
                   value="${declaration.fahuo_company_co}"/>
        </td>
        <td colspan="2">
            <input type="text" id="ownerCodeScc"
                   name="" class="{maxlength_T:18}"
                   value=""/>
        </td>
        <td style="width: 25%;" colspan="2">
            <input type="text" class="{required:true,maxlength_T:70}"
                   name="fahuo_company_name" id="shdwmcfhdwmc"
                   atitle="海关申报-消费使用单位名称" value="${declaration.fahuo_company_name}"/>
        </td>
        <th style="white-space: nowrap;">
            <span><span class="mustRemark">*</span>运输工具名称</span>
        </th>
        <td style="" colspan="2">
            <input type="text" name="transport_na"
                   atitle="海关申报-运输工具名称" value="${declaration.transport_na}"
                   class="{required:true,maxlength_T:26}"/>
        </td>
    </tr>
    <tr>
        <th>
            <span><span class="mustRemark">*</span>申报单位</span>
        </th>
        <td style="">
            <span class="textbox combo" style=" height: 20px;">
                 <span class="textbox-addon textbox-addon-right" style="right: 0px;">
                    <a href="javascript:void(0)" onclick="initSelect($(this));"
                       class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
                </span>
                <input class="textbox-text validatebox-text textbox-prompt" type="text"
                       placeholder=""
                       autocomplete="off"
                       style=" padding-top: 3px; padding-bottom: 3px; margin-right: 18px; margin-left: 0px;color:black;"
                       value="${declaration.shenbao_company_co}"
                       title="4406980006"
                       onfocus="initByFocus($(this));"/>
            </span>
            <input style="display: none;" id="SBDWBM"
                   selectData="hg_option" theKey="HGCODE"
                   keyId="sbdwbmHidden" notClearIfNotExist="1"
                   theValue="HGNAMECN" valueId="sbdwmc"
                   theCode="CODESCC" codeId="agentCodeScc"
                   data-options="valueField:'id', textField:'text'"/>
            <input type="hidden" id="sbdwbmHidden"
                   name="shenbao_company_co"
                   class="{required:true,length10:true}"
                   value="${declaration.shenbao_company_co}"/>
        </td>
        <td colspan="2">
            <input type="text" name=""
                   id="agentCodeScc" class="{maxlength_T:18}"
                   value=""/>
        </td>
        <td style="width: 25%;" colspan="2">
            <input type="text" name="shenbao_company_name" id="sbdwmc"
                   class="{required:true,maxlength_T:70}"
                   atitle="海关申报-申报单位名称"
                   value="${declaration.shenbao_company_name}"/>
        </td>
        <th>
            <span>航次号</span>
        </th>
        <td style="width: 30%;" colspan="1">
            <input type="text" class="{maxlength_T:32}"
                   name="voyage_no" value="${declaration.voyage_no}" atitle="海关申报-航次号"
                   onchange="changeUpper(this)"/>
        </td>
    </tr>
    <tr>
        <th>
            <span>提运单号</span>
        </th>
        <td style="width: 15%;" colspan="3">
            <input type="text" class="{maxlength_T:32}" name="bl_no" value="${declaration.bl_no}"
                   atitle="海关申报-提运单号"
                   onchange="changeUpper(this)"/>
        </td>
        <th>
            <span>许可证号</span>
        </th>
        <td style="width: 30%;" colspan="3">
            <input name="license_no" type="text" atitle="海关申报-许可证号"
                   value="${declaration.license_no}" class="{maxlength_T:20}"/>
        </td>

        <th style="display: none;">
            <span><span class="mustRemark">*</span>结汇方式</span>
        </th>
        <td style="width: 15%; display: none;">
            <span class="textbox combo" style=" height: 20px;">
                 <span class="textbox-addon textbox-addon-right" style="right: 0px;">
                    <a href="javascript:void(0)" onclick="initSelect($(this));"
                       class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
                 </span>
                <input class="textbox-text validatebox-text textbox-prompt" type="text"
                       placeholder=""
                       autocomplete="off"
                       style=" padding-top: 3px; padding-bottom: 3px; margin-right: 18px; margin-left: 0px;color:black;"
                       value="${declaration.lc_type}"
                       title=""
                       onfocus="initByFocus($(this));"/>
            </span>
            <input valueId="jhfsHidden" id="HGSB-JHFS" atitle="海关申报-结汇方式"
                   selectData="co_hgjhfs"
                   theKey="SHOWNAME" theValue="ID" value=""
                   style="width: 100%; display: none;"/>
            <input type="hidden" id="jhfsHidden" name="lc_type" class=""
                   value="${declaration.lc_type}"/>
    </tr>
    <!--//todo-->
    <tr>
        <th>
            <span><span class="mustRemark"></span>纳税单位</span>
        </th>
        <td>
            <select name="tex_company" atitle="海关申报-纳税单位"
                    value="${declaration.tex_company}">
                <option value="001">收发货人</option>
                <option value="002">消费使用单位</option>
                <option value="003">申报单位</option>
            </select>
        </td>
        <th>
            <span><span class="mustRemark">*</span>监管方式</span>
        </th>
        <td style="width: 15%;">
            <span class="textbox combo" style=" height: 20px;">
                 <span class="textbox-addon textbox-addon-right" style="right: 0px;">
                    <a href="javascript:void(0)" onclick="initSelect($(this),null,false);"
                       class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
                </span>
                <input class="textbox-text validatebox-text textbox-prompt" type="text"
                       placeholder=""
                       autocomplete="off"
                       style=" padding-top: 3px; padding-bottom: 3px; margin-right: 18px; margin-left: 0px;color:black;"
                       value="${declaration.trade_mode}"
                       title=""
                       onfocus="initByFocus($(this));"/>
            </span>
            <input valueId="jgfsHidden" id="HGSB-JGFS" atitle="海关申报-监管方式"
                   name="trade_mode" selectData="co_hgjgfs"
                   theKey="SHOWNAME" theValue="ID"
                   value="${declaration.trade_mode}" style="display: none;"/>
            <input type="hidden" id="jgfsHidden" name="trade_mode_code"
                   class="{required:true}"
                   value="${declaration.trade_mode_code}"/>
        </td>
        <th>
            <span><span class="mustRemark">*</span>征免性质</span>
        </th>
        <td style="width: 15%;">

<span class="textbox combo" style=" height: 20px;">
	 <span class="textbox-addon textbox-addon-right" style="right: 0px;">
		<a id="" href="javascript:void(0)" onclick="initSelect($(this),null,false);"
           class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
	</span>
	<input class="textbox-text validatebox-text textbox-prompt" type="text" placeholder=""
           autocomplete="off"
           style=" padding-top: 3px; padding-bottom: 3px; margin-right: 18px; margin-left: 0px;color:black;"
           value="${declaration.levymode_code}"
           title=""
           onfocus="initByFocus($(this));"/>
</span>
            <input id="HGSB-ZMXZ" width="90px" atitle="海关申报-征免性质" valueId="zmxzHidden"
                   value="${declaration.levymode}"
                   name="levymode"
                   selectData="co_hgzmxz" theKey="SHOWNAME" theValue="ID"
                   style="display: none;"/>
            <input type="hidden" id="zmxzHidden" name="levymode_code" class="{required:true}"
                   value="${declaration.levymode_code}"/>

        </td>
        <th style="width: 10%;">
            <span>征税比例</span>
        </th>
        <td style="width: 15%;">
            <input type="text" name="todo" readonly="readonly"
                   value="${declaration.tex_company}" style="width: 100%;" atitle="海关申报-征税比例"/>
        </td>
    </tr>
    </tr>
    <th style="white-space: nowrap;">
                                <span><span class="mustRemark">*</span>
                                    <c:if test="${table=='export'}">
                                        运抵国(地区)
                                    </c:if>
                                    <c:if test="${table=='entry'}">
                                        启抵国(地区)
                                    </c:if>
                                </span>
    </th>
    <td style="width: 15%;">
<span class="textbox combo" style=" height: 20px;">
	 <span class="textbox-addon textbox-addon-right" style="right: 0px;">
		<a href="javascript:void(0)" onclick="initSelect($(this),null,false);"
           class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
	</span>
	<input class="textbox-text validatebox-text textbox-prompt" type="text" placeholder=""
           autocomplete="off"
           style=" padding-top: 3px; padding-bottom: 3px; margin-right: 18px; margin-left: 0px;color:black;"
           value="${declaration.arrived_country_code}"
           title=""
           onfocus="initByFocus($(this));"/>
</span>
        <input valueId="ydgHidden" id="HGSB-YDG" atitle="海关申报-运抵国(地区)"
               name="arrived_country" selectData="hg_co_gjdm"
               theKey="SHOWNAME" theValue="ID" value="${declaration.arrived_country}"
               style="display: none;"/>
        <input type="hidden" id="ydgHidden" name="arrived_country_code"
               class="{required:true}" value="${declaration.arrived_country_code}"/>
    </td>
    <th style="white-space: nowrap;">
        <span><span class="mustRemark">*</span>贸易国(地区)</span>
    </th>
    <td style="">
<span class="textbox combo" style=" height: 20px;">
	 <span class="textbox-addon textbox-addon-right" style="right: 0px;">
		<a href="javascript:void(0)" onclick="initSelect($(this),null,false);"
           class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
	</span>
	<input class="textbox-text validatebox-text textbox-prompt" type="text" placeholder=""
           autocomplete="off"
           style=" padding-top: 3px; padding-bottom: 3px; margin-right: 18px; margin-left: 0px;color:black;"
           value="${declaration.trading_country_code}"
           title=""
           onfocus="initByFocus($(this));"/>
</span>
        <input id="tradeAreaCode" atitle="" style="display: none;"
               name="trading_country" selectData="hg_co_gjdm"
               theKey="SHOWNAME" style="diplay:none;" theValue="ID"
               value="${declaration.trading_country}" valueId="tradeAreaCodeHidden"/>
        <input type="hidden" id="tradeAreaCodeHidden"
               name="trading_country_code" class="{required:true}"
               value="${declaration.trading_country_code}"/>
    </td>
    <th>
                                    <span><span class="mustRemark">*</span>
                                        <c:if test="${table=='export'}">
                                            指运港
                                        </c:if>
                                        <c:if test="${table=='entry'}">
                                            装货港
                                        </c:if>
                                    </span>
    </th>
    <td style="width: 15%;">

<span class="textbox combo" style=" height: 20px;">
	 <span class="textbox-addon textbox-addon-right" style="right: 0px;">
		<a href="javascript:void(0)" onclick="initSelect($(this),null,false);"
           class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
	</span>

	<input class="textbox-text validatebox-text textbox-prompt" type="text" placeholder=""
           autocomplete="off"
           style=" padding-top: 3px; padding-bottom: 3px; margin-right: 18px; margin-left: 0px;color:black;"
           value="${declaration.arrived_port_code}"
           title=""
           onfocus="initByFocus($(this));"/>
</span>
        <input id="HGSB-ZYG" atitle="海关申报-指运港" valueId="zygHidden"
               selectData="hg_co_gkdm" name="arrived_port"
               theKey="SHOWNAME" theValue="ID" value="${declaration.arrived_port}"
               style="display: none;"/>
        <input type="hidden" id="zygHidden" name="arrived_port_code"
               class="{required:true}" value="${declaration.arrived_port_code}"/>
    </td>

    <th style="width: 10%;">
                                <span><span class="mustRemark">*</span>
                                <c:if test="${table=='entry'}">
                                    境内目的地
                                </c:if>
                                <c:if test="${table=='export'}">
                                    境内货源地
                                </c:if>
                                </span>
    </th>
    <td style="" colspan="1">

<span class="textbox combo" style=" height: 20px;">
	 <span class="textbox-addon textbox-addon-right" style="right: 0px;">
		<a href="javascript:void(0)" onclick="initSelect($(this),null,false);"
           class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
	</span>
	<input class="textbox-fix textbox-text validatebox-text textbox-prompt" type="text"
           placeholder=""
           autocomplete="off"
           value="${declaration.goods_addr_code}"
           title=""
           onfocus="initByFocus($(this));"/>
</span>
        <input valueId="jnhydHidden" id="HGSB-JNHYD" atitle="海关申报-境内货源地"
               name="goods_addr" selectData="co_hgjnmdd"
               theKey="SHOWNAME" theValue="ID"
               value="${declaration.goods_addr}" style="display: none;"/>
        <input type="hidden" id="jnhydHidden" name="goods_addr_code"
               class="{required:true}"
               value="${declaration.goods_addr_code}"/>
    </td>
    </tr>
    <tr>
        <th>
            <span><span class="mustRemark">*</span>件数</span>
        </th>
        <td style="width: 15%;">
            <input type="text" class="{required:true}"
                   name="goods_count"
                   onblur="numbercheck(this,0,999999999,'',0)" value="${declaration.goods_count}"
                   atitle="海关申报-件数"/>
        </td>
        <th>
            <span><span class="mustRemark">*</span>包装种类</span>
        </th>
        <td style="width: 15%;">
<span class="textbox combo" style=" height: 20px;">
	 <span class="textbox-addon textbox-addon-right" style="right: 0px;">
		<a href="javascript:void(0)" onclick="initSelect($(this));"
           class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
	</span>
	<input class="textbox-fix textbox-text validatebox-text textbox-prompt" type="text"
           placeholder=""
           autocomplete="off"
           value="${declaration.goods_package}"
           title=""
           onfocus="initByFocus($(this));"/>
</span>
            <input id="HGSB-BZZL" atitle="海关申报-包装种类" valueId="bzzlHidden"
                   name="" selectData="co_hgbzzl"
                   theKey="SHOWNAME" theValue="ID" value=""
                   style="display: none;"/>
            <input type="hidden" id="bzzlHidden" name="goods_package"
                   class="{required:true}" value="${declaration.goods_package}"/>
        </td>
        <th style="width: 3%;">
            <span>运费</span>
        </th>
        <td>
            <select name="freight2" id="yfbs" atitle="海关申报-运费标志"
                    onchange="bzChangeEval('yfbs','HGSB-YFBZ');" value="${declaration.freight2}">
                <option value="1">率</option>
                <option value="2">单价</option>
                <option value="3">总价</option>
            </select>
        </td>
        <td style="width: 10%;">
            <input name="freight1"
                   onblur="numbercheck(this,0,999999999999,'',7)" value="${declaration.freight1}"
                   style="width: 100%" type="text"
                   atitle="海关申报-运费/率"/>
        </td>
        <td id="YFBZ_TD" style="width: 5%;">
<span class="textbox combo" style=" height: 20px;">
	 <span class="textbox-addon textbox-addon-right" style="right: 0px;">
		<a href="javascript:void(0)" onclick="initSelect($(this));"
           class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
	</span>
	<input class="textbox-fix textbox-text validatebox-text textbox-prompt" type="text"
           placeholder=""
           autocomplete="off"
           value="${declaration.freight3}"
           title=""
           onfocus="initByFocus($(this));"/>
</span>
            <input id="HGSB-YFBZ" atitle="海关申报-运费币制"
                   name="" selectData="hg_co_bz" valueId="hgyfbz"
                   theKey="SHOWNAME" theValue="ID" value=""
                   style="display: none;"/>
            <input id="hgyfbz" type="hidden" class="textbox-value" name="freight3"
                   value="${declaration.freight3}"/>
        </td>
    </tr>
    <tr>
        <th>
            <span><span class="mustRemark">*</span>毛重(KG)</span>
        </th>
        <td style="width: 15%;">
            <input type="text" class="{required:true}" id="mz"
                   onblur="numbercheck(this,0,99999999999999,'',5);adjustGrossAndNet();"
                   value="${declaration.gross_weight}" name="gross_weight" atitle="海关申报-毛重(KG)"/>
        </td>
        <th style="white-space: nowrap;">
            <span><span class="mustRemark">*</span>净重(KG)</span>
        </th>
        <td style="width: 15%;">
            <input type="text" class="{required:true}" id="jz"
                   onblur="numbercheck(this,0,99999999999999,'',5);adjustGrossAndNet();"
                   value="${declaration.net_weight}" name="net_weight" atitle="海关申报-净重(KG)"/>
        </td>
        <th style="width: 3%;">
            <span>保费</span>
        </th>
        <td>
            <select id="bfbsId" name="premium2" atitle="海关申报-保费标志"
                    onchange="bzChangeEval('bfbsId','HGSB-BFBZ');" value="${declaration.premium2}">
                <option value="1">率</option>
                <option value="3">总价</option>
            </select>
        </td>

        <td style="width: 10%;">
            <input type="text"
                   onblur="numbercheck(this,0,999999999999,'',7)"
                   style="width: 100%" value="${declaration.premium1}" name="premium1"
                   atitle="海关申报-保费/率"/>
        </td>
        <td style="width: 5%;">
<span class="textbox combo" style=" height: 20px;">
	 <span class="textbox-addon textbox-addon-right" style="right: 0px;">
		<a href="javascript:void(0)" onclick="initSelect($(this));"
           class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
	</span>
	<input class="textbox-fix textbox-text validatebox-text textbox-prompt" type="text"
           placeholder=""
           autocomplete="off"
           value="${declaration.premium3}"
           title=""
           onfocus="initByFocus($(this));"/>
</span>
            <input id="HGSB-BFBZ" atitle="海关申报-保费币制"
                   name="" selectData="hg_co_bz" valueId="hgbfbz"
                   theKey="SHOWNAME" theValue="ID" value=""
                   style="width: 100%; display: none;"/>
            <input id="hgbfbz" type="hidden" class="textbox-value" name="premium3"
                   value="${declaration.freight3}"/>
        </td>
    </tr>
    <tr>
        <th>
            <span><span class="mustRemark">*</span>报关单类型</span>
        </th>
        <td>
<span class="textbox combo" style=" height: 20px;">
	 <span class="textbox-addon textbox-addon-right" style="right: 0px;">
		<a href="javascript:void(0)" onclick="initSelect($(this),null,false);"
           class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
	</span>

	<input class="textbox-fix textbox-text validatebox-text textbox-prompt" type="text"
           placeholder=""
           autocomplete="off"
           value="${declaration.customs_type}"
           title="(M)无纸化通关"
           onfocus="initByFocus($(this));"/>
</span>
            <input id="HGSB-BGDLX" atitle="海关申报-报关单类型" valueId="bgdlxHidden"
                   name="" selectData="co_bgdlx"
                   theKey="SHOWNAME" theValue="ID"
                   value="" style="display: none;"/>
            <input type="hidden" id="bgdlxHidden" name="customs_type"
                   class="{required:true}"
                   value="${declaration.customs_type}"/>
        </td>
        <th>
            <span><span class="mustRemark">*</span>成交方式</span>
        </th>
        <td>
<span class="textbox combo" style=" height: 20px;">
	 <span class="textbox-addon textbox-addon-right" style="right: 0px;">
		<a href="javascript:void(0)" onclick="initSelect($(this),null,false);"
           class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
	</span>
	<input class="textbox-text validatebox-text textbox-prompt" type="text" placeholder=""
           autocomplete="off"
           style=" padding-top: 3px; padding-bottom: 3px; margin-right: 18px; margin-left: 0px;color:black;"
           value="${declaration.deal_mode}"
           title=""
           onfocus="initByFocus($(this));"/>
</span>
            <input valueId="cjfsHidden" id="HGSB-CJFS" atitle="海关申报-成交方式"
                   name="" selectData="co_hgcjfs"
                   theKey="SHOWNAME" theValue="ID"
                   value="${declaration.deal_mode}" style="display: none;"/>
            <input type="hidden" id="cjfsHidden" name="deal_mode"
                   class="{required:true}"
                   value="${declaration.deal_mode}"/>
        </td>
        <th style="width: 3%;">
            <span>杂费</span>
        </th>
        <td>
            <select name="otherfee2" atitle="海关申报-杂费标志" id="zfbsId"
                    onchange="bzChangeEval('zfbsId','HGSB-ZFBZ');" value="${declaration.otherfee2}">
                <option value="1">率</option>
                <option value="3">总价</option>
            </select>
        </td>
        <td style="width: 10%;">
            <input type="text"
                   onblur="numbercheck(this,0,999999999999,'',7)"
                   style="width: 100%" value="${declaration.otherfee1}" name="otherfee1"
                   atitle="海关申报-杂费/率"/>
        </td>
        <td style="width: 5%;">
<span class="textbox combo" style=" height: 20px;">
	 <span class="textbox-addon textbox-addon-right" style="right: 0px;">
		<a href="javascript:void(0)" onclick="initSelect($(this));"
           class="textbox-icon combo-arrow" style="width: 18px; height: 20px;"></a>
	</span>
	<input class="textbox-text validatebox-text textbox-prompt" type="text" placeholder=""
           autocomplete="off"
           style=" padding-top: 3px; padding-bottom: 3px; margin-right: 18px; margin-left: 0px;color:black;"
           value="${declaration.otherfee3}"
           title=""
           onfocus="initByFocus($(this));"/>
</span>
            <input id="HGSB-ZFBZ" atitle="海关申报-杂费币制"
                   name="" selectData="hg_co_bz" valueId="hgzfbz"
                   theKey="SHOWNAME" theValue="ID" value=""
                   style="width: 100%; display: none;"/>
            <input id="hgzfbz" type="hidden" class="textbox-value" name="otherfee3"
                   value="${declaration.otherfee3}"/>
        </td>
    </tr>
    <tr>
        <th style="display: none;">
            <span>批准文号</span>
        </th>
        <td colspan="3" style="display: none;">
            <input type="hidden" name="approval_no" atitle="海关申报-批准文号"
                   value="${declaration.approval_no}" class="{anLength:[0,30]}"/>
        </td>
        <th>
            <span> 备注</span>
        </th>
        <c:if test="${table=='entry'}">
        <td colspan="3">
            </c:if>
            <c:if test="${table=='export'}">
        <td colspan="7">
            </c:if>
            <input type="text" name="remark" value="${declaration.remark}"
                   atitle="海关申报-备注" class="{maxlength_T:255}"/>
        </td>
        <c:if test="${table=='entry'}">
            <th>
                <span> 批准文号</span>
            </th>
            <td colspan="3">
                <input type="text" name="contract_remark" value="${declaration.contract_remark}"
                       atitle="海关申报-批准文号" class="{maxlength_T:255}"/>
            </td>
        </c:if>
    </tr>
</table>
